Optimal. Leaf size=42 \[ -\frac {11}{50} \log \left (5 x^2+3 x+2\right )+\frac {2 x}{5}+\frac {143 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{25 \sqrt {31}} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {1657, 634, 618, 204, 628} \begin {gather*} -\frac {11}{50} \log \left (5 x^2+3 x+2\right )+\frac {2 x}{5}+\frac {143 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{25 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1657
Rubi steps
\begin {align*} \int \frac {3-x+2 x^2}{2+3 x+5 x^2} \, dx &=\int \left (\frac {2}{5}+\frac {11 (1-x)}{5 \left (2+3 x+5 x^2\right )}\right ) \, dx\\ &=\frac {2 x}{5}+\frac {11}{5} \int \frac {1-x}{2+3 x+5 x^2} \, dx\\ &=\frac {2 x}{5}-\frac {11}{50} \int \frac {3+10 x}{2+3 x+5 x^2} \, dx+\frac {143}{50} \int \frac {1}{2+3 x+5 x^2} \, dx\\ &=\frac {2 x}{5}-\frac {11}{50} \log \left (2+3 x+5 x^2\right )-\frac {143}{25} \operatorname {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )\\ &=\frac {2 x}{5}+\frac {143 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{25 \sqrt {31}}-\frac {11}{50} \log \left (2+3 x+5 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 42, normalized size = 1.00 \begin {gather*} -\frac {11}{50} \log \left (5 x^2+3 x+2\right )+\frac {2 x}{5}+\frac {143 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{25 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {3-x+2 x^2}{2+3 x+5 x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.39, size = 33, normalized size = 0.79 \begin {gather*} \frac {143}{775} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {2}{5} \, x - \frac {11}{50} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 33, normalized size = 0.79 \begin {gather*} \frac {143}{775} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {2}{5} \, x - \frac {11}{50} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 34, normalized size = 0.81 \begin {gather*} \frac {2 x}{5}+\frac {143 \sqrt {31}\, \arctan \left (\frac {\left (10 x +3\right ) \sqrt {31}}{31}\right )}{775}-\frac {11 \ln \left (5 x^{2}+3 x +2\right )}{50} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.97, size = 33, normalized size = 0.79 \begin {gather*} \frac {143}{775} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {2}{5} \, x - \frac {11}{50} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.39, size = 35, normalized size = 0.83 \begin {gather*} \frac {2\,x}{5}-\frac {11\,\ln \left (5\,x^2+3\,x+2\right )}{50}+\frac {143\,\sqrt {31}\,\mathrm {atan}\left (\frac {10\,\sqrt {31}\,x}{31}+\frac {3\,\sqrt {31}}{31}\right )}{775} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 49, normalized size = 1.17 \begin {gather*} \frac {2 x}{5} - \frac {11 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{50} + \frac {143 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{775} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________